package com.zhentao.service;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.common.manger.dto.ActivityFindDto;
import com.zhentao.model.common.manger.pojo.Activity;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author lenovo
* @description 针对表【activity】的数据库操作Service
* @createDate 2024-10-02 22:46:34
*/
public interface ActivityService extends IService<Activity> {
    /**
     * 查询活动列表
     * @param dto
     * @return
     */

    ResponseResult findAll(ActivityFindDto dto);

    /**
     * 添加活动
     * @param activity
     * @return
     */

    ResponseResult add(Activity activity) throws Exception;

    /**
     * 修改活动内容
     * @param activity
     * @return
     */

    ResponseResult updateActive(Activity activity);

    /**
     * 删除活动内容
     * @param id
     * @return
     */

    ResponseResult delete(Integer id);
}
